const baseURL='https://wemall.minephone.com/openTask/qq_operTask/backend/public/index.php/api/Ajaxapi'
export const request=(option)=>{
	console.log(option)
	return new Promise((reject,resolve)=>{
		uni.request({
			url:baseURL+option.url,
			method:option.method||'GET',
			data:option.data,
			header:{
				"Content-Type": "application/json",
				"App-Key":'87fce399d54e92a1d93b09d49a9da273',
				"App-Scode":option.header
			},
			success:(res=>{
				reject(res)
			}),
			fail:(res=>{
				resolve(res)
			})
		})
	})
}